using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BASE_FlowChartPicMap : EntityTypeConfiguration<t_BASE_FlowChartPic>
    {
        public t_BASE_FlowChartPicMap()
        {
            // Primary Key
            this.HasKey(t => t.FPicID);

            // Properties
            this.Property(t => t.FPicID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FPicDesc)
                .IsRequired()
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_BASE_FlowChartPic");
            this.Property(t => t.FPicID).HasColumnName("FPicID");
            this.Property(t => t.FPicDesc).HasColumnName("FPicDesc");
            this.Property(t => t.FPicContent).HasColumnName("FPicContent");
        }
    }
}
